import { getRouter } from "src/router"

const goTo = (title: string, url: string) => {
  getRouter().push({path: '/webview', query: {titleWebView: encodeURI(title), urlWebView: encodeURIComponent(url)}})
}

export  const useWebView = () => {
  return {
    goTo
  }
}
